if(void 0===deconcept)var deconcept=new Object;void 0===deconcept.util&&(deconcept.util=new Object),void 0===deconcept.SWFObjectUtil&&(deconcept.SWFObjectUtil=new Object),deconcept.SWFObject=function(t,e,i,r,s,n,a,o,l,d,c){if(document.createElement&&document.getElementById){this.DETECT_KEY=c||"detectflash",this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY),this.params=new Object,this.variables=new Object,this.attributes=new Array,t&&this.setAttribute("swf",t),e&&this.setAttribute("id",e),i&&this.setAttribute("width",i),r&&this.setAttribute("height",r),s&&this.setAttribute("version",new deconcept.PlayerVersion(s.toString().split("."))),this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),a),n&&this.addParam("bgcolor",n);var h=o||"high";this.addParam("quality",h),this.addParam("allowscriptaccess","always"),this.addParam("allownetworking","external"),this.setAttribute("useExpressInstall",a),this.setAttribute("doExpressInstall",!1);var p=l||window.location;this.setAttribute("xiRedirectUrl",p),this.setAttribute("redirectUrl",""),d&&this.setAttribute("redirectUrl",d)}},deconcept.SWFObject.prototype={setAttribute:function(t,e){this.attributes[t]=e},getAttribute:function(t){return this.attributes[t]},addParam:function(t,e){this.params[t]=e},getParams:function(){return this.params},addVariable:function(t,e){this.variables[t]=e},getVariable:function(t){return this.variables[t]},getVariables:function(){return this.variables},getVariablePairs:function(){var t,e=new Array,i=this.getVariables();for(t in i)e.push(t+"="+i[t]);return e},getSWFHTML:function(){var t="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","PlugIn"),t='0&&(t+='flashvars="'+r+'"'),t+="/>"}else{this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","ActiveX"),t='',t+='';var s=this.getParams();for(var i in s)t+='';var n=this.getVariablePairs().join("&");n.length>0&&(t+=''),t+=""}return t},write:function(t){if(this.getAttribute("useExpressInstall")){var e=new deconcept.PlayerVersion([6,0,65]);this.installedVer.versionIsValid(e)&&!this.installedVer.versionIsValid(this.getAttribute("version"))&&(this.setAttribute("doExpressInstall",!0),this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"))),document.title=document.title.slice(0,47)+" - Flash Player Installation",this.addVariable("MMdoctitle",document.title))}return this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))?(("string"==typeof t?document.getElementById(t):t).innerHTML=this.getSWFHTML(),!0):(""!=this.getAttribute("redirectUrl")&&document.location.replace(this.getAttribute("redirectUrl")),!1)}},deconcept.SWFObjectUtil.getPlayerVersion=function(t,e){var i=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var r=navigator.plugins["Shockwave Flash"];r&&r.description&&(i=new deconcept.PlayerVersion(r.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")))}else{try{for(var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),n=15;n>6;n--)try{s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+n),i=new deconcept.PlayerVersion([n,0,0]);break}catch(t){}}catch(t){}if(t&&i.major>t.major)return i;if(!t||(0!=t.minor||0!=t.rev)&&i.major==t.major||6!=i.major||e)try{i=new deconcept.PlayerVersion(s.GetVariable("$version").split(" ")[1].split(","))}catch(t){}}return i},deconcept.PlayerVersion=function(t){this.major=null!=parseInt(t[0])?parseInt(t[0]):0,this.minor=parseInt(t[1])||0,this.rev=parseInt(t[2])||0},deconcept.PlayerVersion.prototype.versionIsValid=function(t){return!(this.majort.major||!(this.minort.minor||!(this.rev-1?e.indexOf("&",i):e.length;if(e.length>1&&i>-1)return e.substring(e.indexOf("=",i)+1,r)}return""}},null==Array.prototype.push&&(Array.prototype.push=function(t){return this[this.length]=t,this.length});var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject;SK="undefined"==typeof SK?{}:SK,SK.UI=SK.UI||{},SK.UI.Element=SK.UI.Element||{},SK.UI.Element.RTE=SK.UI.Element.RTE||{},SK.UI.Element.RTE.Display=new Class({Extends:SK.UI.Element.Display,external_widgets_wrapper:null,content_styles:null,default_property_values:{HtmlText:"",Style:""},initialize:function(){this.parent.apply(this,arguments),SK.Util.isMobile()&&this.placeholder.lastElementChild.setAttribute("contenteditable",!1),this.env.revision_id=1},createComputed:function(){this.env.rte_image_old_daids=this.env.ko.observable(""),this.env.rte_media_old_daids=this.env.ko.observable(""),this.env.rte_anchor_old_ids=this.env.ko.observable(""),this.env.editable_html=this.env.ko.observable(""),this.env.rendered_html=this.env.ko.observable(this.env.properties.HtmlText())},initEffects:function(){ApplyImageEffect(),this.getPlaceholder().querySelectorAll("img").forEach(t=>{t.addEventListener("load",()=>{SK.RolloverImageLoader&&SK.RolloverImageLoader.checkForRolloverImages([t])})})},addEditContentStyles:function(){var t=Function.from(this.getProperties().Style)();t?this.content_styles=new Element("style",{type:"text/css",csstext:t}).inject(this.getPlaceholder()):this.removeEditContentStyles()},removeEditContentStyles:function(){this.content_styles&&this.content_styles.destroy()},addExternalWidgetsWrapper:function(){this.external_widgets_wrapper=new Element("div",{styles:{width:0,height:0},events:{mousedown:function(t){t.stopPropagation()}}}).inject(document.body)},removeExternalWidgetsWrapper:function(){this.external_widgets_wrapper&&this.external_widgets_wrapper.destroy()},getExternalWidgetsWrapper:function(){return this.external_widgets_wrapper},getRTEConfigs:function(){return{error_callback:SKMessage,editor_document:document,editor_window:window}},getExceededStorageMessage:function(){return SK.Singletons.env.get("storage_exceeded_message")},handleResponse:function(t,e,i,r){t?(this.env.revision_id=i.meta.revision_id,this.env.rendered_html(i.properties.HtmlText),!this.env.editing_activated()&&this.updateRenderedHtml(this.env.rendered_html()),i.properties.rte_image_old_daids!=this.env.rte_image_old_daids()&&this.updateRTEObjectDAIDs(this.env.rte_image_old_daids,i.properties.rte_image_old_daids,"img:not([type]):not([stock_image_id]):not([rel=default_image])"),i.properties.rte_media_old_daids!=this.env.rte_media_old_daids()&&this.updateRTEObjectDAIDs(this.env.rte_media_old_daids,i.properties.rte_media_old_daids,"img[type=media]"),i.properties.rte_anchor_old_ids!=this.env.rte_anchor_old_ids()&&this.updateRTEObjectDAIDs(this.env.rte_anchor_old_ids,i.properties.rte_anchor_old_ids,"img[type=anchor]","anchid")):SKMessage(e)},updateRTEObjectDAIDs:function(t,e,i,r){r=r||"daid",t(e);var s=e.split(",");this.getPlaceholder().getElements(i).each(function(t){var e=s.shift();t.getAttribute(r)||t.setAttribute(r,e)})},doUndoRedo:function(t,e){var i=SK.Actions.getEditableElements()[0].frame_instance.getContentFrame().contentWindow.RTE_GetById("rte_1").getPluginById("Undo");i&&i.execCommand(t)},beforeStartEdit:function(){this.parent(),this.placeholder.getElements("[contenteditable]").set("contenteditable",SK.Util.isMobile()?"true":"false")},startEdit:function(){this.addExternalWidgetsWrapper(),this.addEditContentStyles(),this.parent.apply(this,arguments),this.has_zero_footprint_method&&this.hideZeroFootprint(),SK.Singletons.top_menu.startRTEEdit()},exitEditing:function(){SK.Singletons.top_menu.endRTEEdit(),this.removeEditContentStyles(),this.removeExternalWidgetsWrapper()},finishEdit:function(){return!!this.parent.apply(this,arguments)&&(this.exitEditing(),!0)},updateRenderedHtml:function(t){(t||"").test(/document\.write|SK\.Widget/gi)?SK.Actions.Common.reloadPage(void 0,["#coordinates",this.getPlaceholder().getCoordinates().top].join("=")):(this.getPlaceholder().getElement(".rte-content-holder").set("html",(t||"").stripScripts(function(t,e,i,r){(r||function(){}).delay(0)})),this.initEffects())}});